package 设计模式.建造者模式;

import 设计模式.建造者模式.material.Ceiling;
import 设计模式.建造者模式.material.Floor;

/**
 * @description:
 * @author: 小白白
 * @create: 2021-10-08
 **/

public class HomeBuilder {

    private Ceiling ceiling;
    private Floor floor;

    public HomeBuilder appendCeiling(Ceiling ceiling) {
        this.ceiling = ceiling;
        return this;
    }

    public HomeBuilder appendFloor(Floor floor) {
        this.floor = floor;
        return this;
    }

    @Override
    public String toString() {
        return "天花板:"+ceiling.brand+",地板:"+floor.brand;
    }
}
